package com.yyys;

import de.codecentric.boot.admin.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * @ClassName DataBootAdminApplication
 * @Description spring boot admin 监控中心
 * @Author 李运明
 * @Date 2018/6/21 9:47
 * @Version V1.0.0
 */
@SpringBootApplication
@EnableHystrix
@EnableHystrixDashboard
@EnableCircuitBreaker
@EnableDiscoveryClient
@EnableAdminServer
@EnableFeignClients
public class DataBootAdminApplication extends SpringBootServletInitializer{

    public static void main(String[] args) {
        SpringApplication.run(DataBootAdminApplication.class, args);
    }

}
